/*
 * GeoVISTA Center (Penn State, Dept. of Geography)
 * Copyright (c), 2003-2011,  Jin Chen and Alan M. MacEachren, GeoVISTA Center, Penn State University
 * Licensed under Simplified BSD License
 *
 *
 * @author: jin Chen 
 * @date: Jun 15, 2005$
 * @version: 1.0
 */
package edu.psu.geovista.app.hce.dendroview.gui.paint;



import java.awt.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class HlightWorker {
    private int obsrIndex;
    //MosicDendrogram plot;
    List hobjects=new ArrayList();//objects need to be hightlight. must be HLObject

    public void paint(Graphics g){

        for (Iterator iterator = hobjects.iterator(); iterator.hasNext();) {
            HLObject ho = (HLObject) iterator.next();
            ho.paint(g);
        }
    }

    public void addHightlight(HLObject ho){
        this.hobjects.add(ho);
    }
    /**
     * no hightlight
     */
    public void clear(){
        this.hobjects.clear();
    }
}
